using System;
using PDUConverter;

namespace Communication
{
    /// <summary>
    /// Provides data for the events that deal with message sending.
    /// </summary>
    public class MessageEventArgs : EventArgs
    {
        private OutgoingSmsPdu _pdu;

        /// <summary>
        /// Initializes a new instance of the MessageEventArgs.
        /// </summary>
        /// <param name="pdu">The message that was dealt with.</param>
        public MessageEventArgs(OutgoingSmsPdu pdu)
        {
            _pdu = pdu;
        }

        /// <summary>
        /// The message that was dealt with.
        /// </summary>
        public OutgoingSmsPdu Pdu
        {
            get
            {
                return _pdu;
            }
        }
    }
}